<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<head>

		<meta charset="utf-8" />
		<title>My JSP 'fileupload.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!-- 
    <link rel="stylesheet" type="text/css" href="styles.css"> 
    -->
		<link href="editormd/css/editormd.min.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-3.2.0.min.js" ></script>
		<script type="text/javascript" src="editormd/editormd.js"></script>
		<script type="text/javascript">
			var testEditor;

			testEditor = $(function() {
				editormd("test-editormd", {
					width: "100%",
					height: 700,
					codeFold: true,
					syncScrolling: "single",
					//你的lib目录的路径
					path: "editormd/lib/",
					imageUpload: true, //关闭图片上传功能
					imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
					imageUploadURL: "http://localhost:8080/cas/fileUpload.action",
					//theme: "dark",//工具栏主题
					//previewTheme: "dark",//预览主题
					//editorTheme: "pastel-on-dark",//编辑主题 
					emoji: true,
					taskList: true,
					tocm: true, // Using [TOCM]
					tex: true, // 开启科学公式TeX语言支持，默认关闭
					flowChart: true, // 开启流程图支持，默认关闭
					sequenceDiagram: true, // 开启时序/序列图支持，默认关闭,
					//这个配置在simple.html中并没有，但是为了能够提交表单，使用这个配置可以让构造出来的HTML代码直接在第二个隐藏的textarea域中，方便post提交表单。
					saveHTMLToTextarea: true
				});

			});
		</script>
	</head>

	<body>
		<!-- editormd start -->
		<div class="editormd" id="test-editormd">
			<textarea class="editormd-markdown-textarea" name="test-editormd-markdown-doc" id="editormd"></textarea>
			<!-- 第二个隐藏文本域，用来构造生成的HTML代码，方便表单POST提交，这里的name可以任意取，后台接受时以这个name键为准 -->
			<!-- html textarea 需要开启配置项 saveHTMLToTextarea == true -->
			<textarea class="editormd-html-textarea" name="editorhtml" id="editorhtml"></textarea>
		</div>
		<!-- editormd end -->

	</body>

</html>